package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.io.Serializable;

/**
 * 产品信息对象 product_info
 *
 * @author ruoyi
 * @date 2023-01-26
 */
@TableName("product_info")
public class ProductInfo extends BaseEntity implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 产品id */
    @TableId
    private Long id;

    /** 品牌 */
    @Excel(name = "品牌")
    private String brand;

    /** 编号 */
    @Excel(name = "编号")
    private String number;

    /** 品牌件号 */
    @Excel(name = "品牌件号")
    private String brandCode;

    /** 位置 */
    @Excel(name = "位置")
    private String direction;

    /** 原厂编号 */
    @Excel(name = "原厂编号")
    private String factoryCode;

    /** 产品类型id */
    @Excel(name = "产品类型id")
    private Long productTypeId;

    /** 生产年份 */
    @Excel(name = "生产年份")
    private String productYear;

    /** 时间区间 */
    @Excel(name = "时间区间")
    private String productSpan;

    /** 时间区间-开始 */
    @Excel(name = "时间区间-开始")
    private String productStartTime;

    /** 时间区间-结束 */
    @Excel(name = "时间区间-结束")
    private String productEndTime;

    /** 产品轮播图（数组） */
    @Excel(name = "产品轮播图", readConverterExp = "数=组")
    private String image;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setBrand(String brand)
    {
        this.brand = brand;
    }

    public String getBrand()
    {
        return brand;
    }
    public void setNumber(String number)
    {
        this.number = number;
    }

    public String getNumber()
    {
        return number;
    }
    public void setBrandCode(String brandCode)
    {
        this.brandCode = brandCode;
    }

    public String getBrandCode()
    {
        return brandCode;
    }
    public void setDirection(String direction)
    {
        this.direction = direction;
    }

    public String getDirection()
    {
        return direction;
    }
    public void setFactoryCode(String factoryCode)
    {
        this.factoryCode = factoryCode;
    }

    public String getFactoryCode()
    {
        return factoryCode;
    }
    public void setProductTypeId(Long productTypeId)
    {
        this.productTypeId = productTypeId;
    }

    public Long getProductTypeId()
    {
        return productTypeId;
    }
    public void setProductYear(String productYear)
    {
        this.productYear = productYear;
    }

    public String getProductYear()
    {
        return productYear;
    }
    public void setProductSpan(String productSpan)
    {
        this.productSpan = productSpan;
    }

    public String getProductSpan()
    {
        return productSpan;
    }
    public void setProductStartTime(String productStartTime)
    {
        this.productStartTime = productStartTime;
    }

    public String getProductStartTime()
    {
        return productStartTime;
    }
    public void setProductEndTime(String productEndTime)
    {
        this.productEndTime = productEndTime;
    }

    public String getProductEndTime()
    {
        return productEndTime;
    }
    public void setImage(String image)
    {
        this.image = image;
    }

    public String getImage()
    {
        return image;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("brand", getBrand())
                .append("number", getNumber())
                .append("brandCode", getBrandCode())
                .append("direction", getDirection())
                .append("factoryCode", getFactoryCode())
                .append("productTypeId", getProductTypeId())
                .append("productYear", getProductYear())
                .append("productSpan", getProductSpan())
                .append("productStartTime", getProductStartTime())
                .append("productEndTime", getProductEndTime())
                .append("image", getImage())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
